package com.charles.video.system.mapper;

import com.charles.video.api.domain.SysMember;
import com.charles.video.system.vo.EditMemberForm;
import com.charles.video.system.vo.SearchMemberForm;
import com.charles.video.system.vo.SysMemberDataVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysMemberMapper {
    
    SysMember queryMemberByNum(String memberNum);
    
    void recordMemberLogin(Integer memberId, String loginIp);

    List<SysMemberDataVo> queryMemberList(SearchMemberForm searchMemberForm);
    
    EditMemberForm queryEditMemberForm(Integer memberId);
    
    boolean addMember(SysMember member);
    
    boolean modifyMember(SysMember member);
    
    boolean deleteMember(Integer memberId);
    
}
